Repository navigation
Update rootstock 2019-08-02 - #196
Merged
Merged
Conversation
Merges manubot/rootstock#227 * Upgrade dependencies on 2019-06-03 Keep python at 3.6 to avoid introducing collections.abc warnings from jinja2. Keep cairo, pango, and weasyprint at previous versions to avoid dealing with any difficulties. * Upgrade manubot to include new citation infrastructure. Includes support for multiple manual reference files of multiple formats. Rewrite USAGE.md to document new functionality. * environment.yml: remove `conda-forge::` prefix, which should not be necessary since we specify conda-forge as the channel. This change is meant to resolve conda warning: > you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies https://travis-ci.com/manubot/rootstock/builds/114188607#L507 * Update .gitignore with vscode directory
Merges manubot/rootstock#230 Closes manubot/rootstock#229 Previously, `command -v docker` returned a non-zero exit status when docker did not exist. Because build.sh uses `set -o errexit`, this caused the build script to exit. By appending `|| true`, the exit status will always be zero. Use recommended $() instead of backticks for command substitution. https://stackoverflow.com/a/24592916/4651668
Merges manubot/rootstock#234 Also update URLs in 02.delete-me.md
…ee#233) Merges manubot/rootstock#233 Hat tip to Michael Hoffman (https://hoffmanlab.org/) for feedback. * Apply shell best practices References: https://kvz.io/blog/2013/11/21/bash-best-practices/ https://www.davidpashley.com/articles/writing-robust-shell-scripts/ manubot/rootstock#233 (comment) * Specify bash (not just sh). Other shellcheck suggestions Properly use command substitution and parameter expansion in the appropriate places. * echo diagnostic messages to stderr Previously echo defaulted to stdout https://stackoverflow.com/a/41766832/4651668 Placement of stderr redirect to: "echo >&2" * Update bash options: xtrace specified by calling command * Quote variable names * deploy.sh: use Travis env vars for CI build URLs These environment variables were added to Travis in late 2018 travis-ci/travis-ci#8935 (comment)
* Improve documentation about build process * Additional rephrasing * Updates per dhimmel review
* Link to catalog * Add formatting and CSL instructions * Remove examples and add try-manubot
Merges manubot/rootstock#250 Failures in after_success did not cause the entire build to fail. Now if deployment fails, the build should fail. References: https://docs.travis-ci.com/user/deployment/#conditional-releases-with-on https://docs.travis-ci.com/user/deployment/script/ travis-ci/travis-ci#758
Merges manubot/rootstock#243 Closes manubot/rootstock#91 Closes manubot/rootstock#246 Switch to a Travis CI settings environment variable to store the SSH private key for GitHub deployment. Setup no longer requires the travis ruby gem, whose `travis encrypt` subcommand was incompatible with Windows. Setup is now supported on Windows systems with a Unix/Linux/POSIX-compliant shell with the proper dependencies, such as ssh-keygen & openssl. The SSH private key is stored in MANUBOT_SSH_PRIVATE_KEY, after being base64 encoded to remove newline characters. Remove files for the legacy encrypted file method. Deprecate the encrypted file decryption in deploy.sh. In the future, we may only support private key specification via MANUBOT_SSH_PRIVATE_KEY.
Merges manubot/rootstock#258 Closes manubot/rootstock#257 Change corresponds to: chmod a+x **/*.sh
Closed
dhimmel
approved these changes
Aug 2, 2019
Collaborator
|
Doesn't necessarily have to be done now (or ever), but you could at some point consider switching to Travis CI .com and using the environment variable deploy key. |
michaelmhoffman
self-requested a review
August 2, 2019 16:31
michaelmhoffman
approved these changes
Aug 2, 2019
Collaborator
There was a problem hiding this comment.
I tested agitter:rootstock-2019-08-02 locally and it generates HTML and PDF files as expected. WeasyPrint produced the following warnings:
Exporting PDF manuscript using WeasyPrint
WARNING: Failed to load local font "Open Sans Regular"
WARNING: Failed to load local font "OpenSans-Regular"
WARNING: Failed to load local font "Source Code Pro"
WARNING: Failed to load local font "SourceCodePro-Regular"
WARNING: Ignored `-webkit-text-size-adjust: none ` at 16:9, unknown property.
WARNING: Ignored `-moz-text-size-adjust: none ` at 17:9, unknown property.
WARNING: Ignored `-o-text-size-adjust: none ` at 18:9, unknown property.
WARNING: Ignored `text-size-adjust: none ` at 19:9, unknown property.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 22:5.
WARNING: Expected a media type, got only/**/screen/**/and/**/(max-width: 8.5in)
WARNING: Invalid media type " only screen and (max-width: 8.5in) " the whole @media rule was ignored at 40:5.
WARNING: Ignored `justify-content: left` at 135:9, unknown property.
WARNING: Ignored `justify-content: center` at 144:9, unknown property.
WARNING: Ignored `justify-content: right` at 153:9, unknown property.
WARNING: Ignored `word-break: break-all` at 228:9, unknown property.
WARNING: Ignored `word-break: break-word` at 229:9, unknown property.
WARNING: Ignored `display: inline-flex` at 416:9, invalid value.
WARNING: Ignored `justify-content: center` at 417:9, unknown property.
WARNING: Ignored `align-items: center` at 418:9, unknown property.
WARNING: Ignored `cursor: pointer` at 435:9, the property does not apply for the print media.
WARNING: Ignored `pointer-events: none` at 443:9, unknown property.
WARNING: Ignored `display: inline-flex` at 448:9, invalid value.
WARNING: Ignored `justify-content: center` at 449:9, unknown property.
WARNING: Ignored `align-items: center` at 450:9, unknown property.
WARNING: Ignored `display: flex` at 560:13, invalid value.
WARNING: Ignored `align-items: center` at 561:13, unknown property.
WARNING: Ignored `display: flex ` at 625:9, invalid value.
WARNING: Ignored `overflow-x: auto ` at 626:9, unknown property.
WARNING: Ignored `overflow-y: hidden ` at 627:9, unknown property.
WARNING: Ignored `justify-content: center` at 628:9, unknown property.
WARNING: Ignored `align-items: center` at 629:9, unknown property.
WARNING: Ignored `box-shadow: none ` at 637:9, unknown property.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 655:5.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 681:5.
WARNING: Expected a media type, got (hover: none)
WARNING: Invalid media type " (hover: none) " the whole @media rule was ignored at 707:5.
WARNING: Expected a media type, got only/**/print
WARNING: Invalid media type " only print " the whole @media rule was ignored at 714:5.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 724:5.
WARNING: Expected a media type, got only/**/print
WARNING: Invalid media type " only print " the whole @media rule was ignored at 749:5.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 759:5.
WARNING: Expected a media type, got only/**/print
WARNING: Invalid media type " only print " the whole @media rule was ignored at 817:5.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 827:5.
WARNING: Expected a media type, got only/**/print
WARNING: Invalid media type " only print " the whole @media rule was ignored at 837:5.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 847:5.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 881:5.
WARNING: Expected a media type, got only/**/screen/**/and/**/(max-width: 8.5in)
WARNING: Invalid media type " only screen and (max-width: 8.5in) " the whole @media rule was ignored at 1015:5.
WARNING: Expected a media type, got only/**/print
WARNING: Invalid media type " only print " the whole @media rule was ignored at 1028:5.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 1038:5.
WARNING: Expected a media type, got only/**/screen/**/and/**/(max-width: 480px)
WARNING: Invalid media type " only screen and (max-width: 480px) " the whole @media rule was ignored at 1152:5.
WARNING: Expected a media type, got only/**/print
WARNING: Invalid media type " only print " the whole @media rule was ignored at 1161:5.
WARNING: Expected a media type, got only/**/print
WARNING: Invalid media type " only print " the whole @media rule was ignored at 1193:5.
Benjamin-Lee
pushed a commit
that referenced
this pull request
Aug 2, 2019
This build is based on b142e6d. This commit was created by the following Travis CI build and job: https://travis-ci.org/Benjamin-Lee/deep-rules/builds/567069606 https://travis-ci.org/Benjamin-Lee/deep-rules/jobs/567069607 [ci skip] The full commit message that triggered this build is copied below: Merge pull request #196 from agitter/rootstock-2019-08-02 Update rootstock 2019-08-02
Benjamin-Lee
pushed a commit
that referenced
this pull request
Aug 2, 2019
This build is based on b142e6d. This commit was created by the following Travis CI build and job: https://travis-ci.org/Benjamin-Lee/deep-rules/builds/567069606 https://travis-ci.org/Benjamin-Lee/deep-rules/jobs/567069607 [ci skip] The full commit message that triggered this build is copied below: Merge pull request #196 from agitter/rootstock-2019-08-02 Update rootstock 2019-08-02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This merges the latest rootstock changes and resolves merge conflicts. There were more conflicts than usual because of the conflicts introduced by d2298ee and fae4239 in addition to the deploy conflicts described in greenelab/meta-review#251. I manually resolved the merge conflicts in
ci/README.mdandci/deploy.sh.Here are the full local commands, will select output included: